import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    /** ----------------------------首页 *---------------------------- */
    {
      path: '/',
      name: 'home',
      component: () => import('../views/home/home.vue'),
    },
    /** ----------------------------房价趋势 *---------------------------- */
    {
      path: '/trend',
      name: 'trend',
      component: () => import('../views/trend/trend.vue'),
    },
    /** ----------------------------个人中心 *---------------------------- */
    {
      path: '/mySelf',
      name: 'mySelf',
      component: () => import('../views/mySelf/mySelf.vue'),
    },
    /** ----------------------------账户中心 *---------------------------- */
    {
      path: '/account',
      name: 'account',
      component: () => import('../views/account/account.vue'),
    },
    /** ----------------------------意见反馈 *---------------------------- */
    {
      path: '/feedBack',
      name: 'feedBack',
      component: () => import('../views/feedBack/feedBack.vue'),
    },
    /** ----------------------------邀请好友 *---------------------------- */
    {
      path: '/invite',
      name: 'invite',
      component: () => import('../views/invite/invite.vue'),
    },
    /** ----------------------------分享 *---------------------------- */
    {
      path: '/share',
      name: 'share',
      component: () => import('../views/share/share.vue'),
    },
    /** ----------------------------开通会员页面 *---------------------------- */
    {
      path: '/member',
      name: 'member',
      component: () => import('../views/member/member.vue'),
    },
    /** ----------------------------小区详情 *---------------------------- */
    {
      path: '/xiaoquDetail',
      name: 'xiaoquDetail',
      component: () => import('../views/xiaoquDetail/xiaoquDetail.vue'),
    },
    /** ----------------------------行政区详情 *---------------------------- */
    {
      path: '/xingZhenDetail',
      name: 'xingZhenDetail',
      component: () => import('../views/xingzhenDetail/xingzhenDetail.vue'),
    },
    /** ----------------------------片区详情 *---------------------------- */
    {
      path: '/pianQuDetail',
      name: 'pianQuDetail',
      component: () => import('../views/pianQuDetail/pianQuDetail.vue'),
    },
    /** ----------------------------学校详情 *---------------------------- */
    {
      path: '/schoolDetail',
      name: 'schoolDetail',
      component: () => import('../views/schoolDetail/schoolDetail.vue'),
    },
    /** ----------------------------测试页面 *---------------------------- */
    {
      path: '/pageScroll',
      name: 'pageScroll',
      component: () => import('../views/testView/pagescroll.vue'),
    },
    {
      path: '/echartTest',
      name: 'echartTest',
      component: () => import('../views/testView/echartTest.vue'),
    },
  ],
})
